import { ask } from '../network/requestBody.js'

/**
 * 查询所有模型分类记录
 * @return {Promise<*|undefined>}
 */
export let queryAllLargeMode = (param)=> ask(['/Spark/queryAllLargeMode', 'GET', param])

/**
 * 查询用户历史记录
 * @param param
 * @return {Promise<*|undefined>}
 */
export let querySparkChat =  param => ask(['/Spark/querySparkChat', 'GET', param])


/**
 * 添加会话记录
 */
export let addSparkChat =  param => ask(['/Spark/addSparkChat', 'POST', param])

/**
 * 删除会话记录
 */
export let deleteSparkChat =  param => ask(['/Spark/deleteSparkChat', 'POST', param])

/**
 * 修改会话记录
 */
export let updateSparkChat =  param => ask(['/Spark/updateSparkChat', 'POST', param])
